﻿@using Tateeda.ClinicalStudy.Base.Modules.Models.StudyVisit
@model IEnumerable<VisitStepVisitSequenceModel>
@{
    ViewBag.Title = "Sequence";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<h2>
    Sequence</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Visit Step ID
        </th>
        <th>
            Visit ID
        </th>
        <th>
            Visit Name
        </th>
        <th>
            Days From Base
        </th>
        <th>
            Is Active
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.VisitStepId)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.VisitId)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Visit.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DaysFromBase)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IsActive)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
                @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
                @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
            </td>
        </tr>
    }
</table>